package o;

import android.annotation.TargetApi;
import android.content.Context;
import com.google.android.gms.common.annotation.KeepForSdk;

@KeepForSdk
public final class apq {
    private static Boolean ˋ;
    private static Boolean ˎ;
    private static Boolean ॱ;

    @TargetApi(20)
    @KeepForSdk
    public static boolean ॱ(Context context) {
        if (ॱ == null) {
            boolean z = app.ˏ() && context.getPackageManager().hasSystemFeature("android.hardware.type.watch");
            ॱ = Boolean.valueOf(z);
        }
        return ॱ.booleanValue();
    }

    @TargetApi(26)
    @KeepForSdk
    public static boolean ˋ(Context context) {
        return ॱ(context) && (!app.ˊ() || (ˏ(context) && !app.ˋ()));
    }

    @TargetApi(21)
    private static boolean ˏ(Context context) {
        if (ˋ == null) {
            boolean z = app.ˎ() && context.getPackageManager().hasSystemFeature("cn.google");
            ˋ = Boolean.valueOf(z);
        }
        return ˋ.booleanValue();
    }

    public static boolean ˊ(Context context) {
        if (ˎ == null) {
            boolean z = context.getPackageManager().hasSystemFeature("android.hardware.type.iot") || context.getPackageManager().hasSystemFeature("android.hardware.type.embedded");
            ˎ = Boolean.valueOf(z);
        }
        return ˎ.booleanValue();
    }
}
